﻿/* check form register */
function CheckFormRegister(form) {
	with (form){
		if(txtFullName.value=="") {
			txtFullName.focus();
			return false;
		}
		if(txtAccount.value=="") {
			txtAccount.focus();
			return false;
		}
		if(txtPassword.value=="") {
			txtPassword.focus();
			return false;
		}
		if(txtRePassword.value=="") {
			txtRePassword.focus();
			return false;
		}
		if(txtEmail.value=="") {
			txtEmail.focus();
			return false;
		}
		if(txtPhone.value=="") {
			txtPhone.focus();
			return false;
		}
		if(txtAddress.value=="") {
			txtAddress.focus();
			return false;
		}
	}
}
/* check form new post */
function CheckFormNewPost(form) {
	with (form){
		if(txtFullName.value=="") {
			txtFullName.focus();
			return false;
		}
		if(txtEmail.value=="") {
			txtEmail.focus();
			return false;
		}
		if(txtSubject.value=="") {
			txtSubject.focus();
			return false;
		}
		if(txtPhone.value=="") {
			txtPhone.focus();
			return false;
		}
		if(txtContent.value=="") {
			txtContent.focus();
			return false;
		}
	}
}